package com.lxyk.service.impl;

import com.github.pagehelper.PageInfo;
import com.lxyk.mapper.WaterDetailsMapper;
import com.lxyk.pojo.WaterDetails;
import com.lxyk.service.WaterDetailsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @ClassName WaterDetailsServiceImpl
 * @Description TODO
 * @Author FJQ
 * @Date 2022/10/26 16:25
 * @Version 1.0
 **/
@Service
public class WaterDetailsServiceImpl implements WaterDetailsService {

    @Autowired
    private WaterDetailsMapper waterDetailsMapper;


    @Override
    public PageInfo<WaterDetails> querySendWaterDetails(WaterDetails waterDetails,Integer pageNum, Integer pageSize) {
        List<WaterDetails> waterDetailsList = waterDetailsMapper.querySendWaterDetails(waterDetails);
        return new PageInfo<>(waterDetailsList);
    }
}
